package com.soft.javase.day12.bank;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/5/19
 */
public class WithdrawThread implements Runnable {
    private Account account;

    public WithdrawThread(Account account) {
        this.account = account;
    }

    @Override
    public void run() {
        account.withdraw(6000);
    }
}
